package com.simple.question;

import java.io.Serializable;

/**
 * 
 * 知识点关系升级:前后置关系,以后知识点的关系都可以通过KPointRelationship来表达
 * @author wx
 *
 */
public class KPointRelationship implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private long id;
	
	/** 当前知识点 */
	private long kPointId;
	
	/** 前置知识点  */
	private long previous;
	
	/** 后置知识点  */
	private long next;
	
	/** 知识点关系类型  */
	private long relationshipType ;
	
	/** 知识点关系类型:前置  */
	public static final int RELATIONSHIP_TYPE_PREVIOUS = 1;
	
	/** 知识点关系类型:后置  */
	public static final int RELATIONSHIP_TYPE_NEXT = 2;

	public KnowledgePoint previousKPoint;
	
	public KnowledgePoint nextKPoint;
	
	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public long getkPointId() {
		return kPointId;
	}

	public void setkPointId(long kPointId) {
		this.kPointId = kPointId;
	}

	public long getPrevious() {
		return previous;
	}

	public void setPrevious(long previous) {
		this.previous = previous;
	}

	public long getNext() {
		return next;
	}

	public void setNext(long next) {
		this.next = next;
	}

	public long getRelationshipType() {
		return relationshipType;
	}

	public void setRelationshipType(long relationshipType) {
		this.relationshipType = relationshipType;
	}

	public KnowledgePoint getPreviousKPoint() {
		return previousKPoint;
	}

	public void setPreviousKPoint(KnowledgePoint previousKPoint) {
		this.previousKPoint = previousKPoint;
	}

	public KnowledgePoint getNextKPoint() {
		return nextKPoint;
	}

	public void setNextKPoint(KnowledgePoint nextKPoint) {
		this.nextKPoint = nextKPoint;
	}
}
